package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.stylefeng.guns.common.annotion.EmpCode;
import com.stylefeng.guns.common.annotion.Point;
import com.stylefeng.guns.common.annotion.PointType;
import com.stylefeng.guns.common.annotion.Year;
import com.stylefeng.guns.common.constant.PointConstType;

import java.io.Serializable;

/**
 * <p>
 * 	培训项目
 * </p>
 *
 * @author rockjh
 * @since 2018-01-28
 */
@PointType(PointConstType.trainProgramPoints)
@TableName("train_program_points")
public class TrainProgramPoints extends Model<TrainProgramPoints> {

    private static final long serialVersionUID = 1L;

	/**
	 * 主键ID
	 */
	@TableId(value="id", type= IdType.UUID)
	private String id;
	/**
	 * 年度
	 */
	@TableField("year")
	@Excel(name = "年度",width = 20)
	@Year
	private String year;
    /**
     * 员工编号
     */
	@EmpCode
	@TableField("emp_code")
	@Excel(name = "员工编号",width = 20)
	private String empCode;
    /**
     * 员工姓名
     */
	@TableField("emp_name")
	@Excel(name = "员工姓名",width = 20)
	private String empName;
    /**
     * 项目层级
     */
	@TableField("layer_level")
	@Excel(name = "项目层级",width = 20)
	private String layerLevel;
    /**
     * 项目层级编码
     */
	@TableField("layer_level_code")
	private String layerLevelCode;
    /**
     * 项目内容
     */
	@Excel(name = "项目内容",width = 20)
	private String content;
    /**
     * 评审结果
     */
	@TableField("review_result")
	@Excel(name = "评审结果",width = 20)
	private String reviewResult;
    /**
     * 积分
     */
	@Point
	@Excel(name = "积分",width = 15)
	private Double integral;
    /**
     * 创建日期
     */
	@TableField("create_date")
	private Date createDate;
    /**
     * 数据来源
     */
	@TableField("data_origin")
	private String dataOrigin;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getEmpCode() {
		return empCode;
	}

	public void setEmpCode(String empCode) {
		this.empCode = empCode;
	}

	public String getEmpName() {
		return empName;
	}

	public void setEmpName(String empName) {
		this.empName = empName;
	}

	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public String getLayerLevel() {
		return layerLevel;
	}

	public void setLayerLevel(String layerLevel) {
		this.layerLevel = layerLevel;
	}

	public String getLayerLevelCode() {
		return layerLevelCode;
	}

	public void setLayerLevelCode(String layerLevelCode) {
		this.layerLevelCode = layerLevelCode;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getReviewResult() {
		return reviewResult;
	}

	public void setReviewResult(String reviewResult) {
		this.reviewResult = reviewResult;
	}

	public Double getIntegral() {
		return integral;
	}

	public void setIntegral(Double integral) {
		this.integral = integral;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getDataOrigin() {
		return dataOrigin;
	}

	public void setDataOrigin(String dataOrigin) {
		this.dataOrigin = dataOrigin;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "TrainProgramPoints{" +
			"id=" + id +
			", empCode=" + empCode +
			", empName=" + empName +
			", year=" + year +
			", layerLevel=" + layerLevel +
			", layerLevelCode=" + layerLevelCode +
			", content=" + content +
			", reviewResult=" + reviewResult +
			", integral=" + integral +
			", createDate=" + createDate +
			", dataOrigin=" + dataOrigin +
			"}";
	}
}
